package com.meida.module.bus.provider.controller;

import com.meida.common.mybatis.model.ResultBody;
import com.meida.common.springmvc.base.BaseController;
import com.meida.module.bus.client.entity.srmapi.basedata.SrmMaterial;
import com.meida.module.bus.provider.service.SrmMaterialService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/bus/materials/")
public class SrmMaterialController extends BaseController<SrmMaterialService, SrmMaterial> {

    @ApiOperation(value = "srm物料分页-列表", notes = "srm物料分页列表")
    @GetMapping(value = "page")
    public ResultBody pageList(@RequestParam(required = false) Map params) {
        return bizService.pageList(params);
    }

    @ApiOperation(value = "srm物料-列表", notes = "srm物料列表")
    @GetMapping(value = "getlist")
    public ResultBody list(@RequestParam(required = false) Map params) {
        return bizService.listEntityMap(params);
    }

}
